PostGroupDTO

Namespace: Backend.Controllers.DTOs
Assembly: Backend.dll

Defines the DTO for posting a group, containing the necessary information for creating a new group, including its name, type, and an optional group picture. The PostGroupDTO is used to transfer data from the client to the server when creating a new group, ensuring that all required information is provided and validated appropriately for the creation process.

public class PostGroupDTO

Inheritance

object ← PostGroupDTO


Properties


GroupPicture

The group picture file to be uploaded and associated with the newly created group. This field is optional and can be included in the request to provide a visual representation of the group, allowing for better identification and differentiation of groups within the system. If provided, the group picture will be processed and stored appropriately based on the application's file handling and storage mechanisms.

public required IFormFile GroupPicture { get; set; }

Property Value

IFormFile

Name

The name of the Group.

[StringLength(100)]
[Required(AllowEmptyStrings = false)]
public required string Name { get; set; }

Property Value

string

Type

The type of the Group (E.G. Committee, Working Group).

public required GroupType Type { get; set; }

Property Value

GroupType

On this page