public void AddFileType(ApiFileTypeClientResponseModel item) { if (!this.FileTypes.Any(x => x.Id == item.Id)) { this.FileTypes.Add(item); } }
public virtual ApiFileTypeClientRequestModel MapClientResponseToRequest( ApiFileTypeClientResponseModel response) { var request = new ApiFileTypeClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiFileTypeClientResponseModel MapClientRequestToResponse( int id, ApiFileTypeClientRequestModel request) { var response = new ApiFileTypeClientResponseModel(); response.SetProperties(id, request.Name); return(response); }
public void SetFileTypeIdNavigation(ApiFileTypeClientResponseModel value) { this.FileTypeIdNavigation = value; }