public static void CreateResponse(this DataResponse respose, DataResponseStatus status, int Id = 0) { respose.Status = status; respose.Message = status.ToString(); respose.Id = Id; }
public static void CreateResponse <T>(this DataResponse <T> respose, T model, DataResponseStatus status) { respose.Status = status; respose.Message = status.ToString(); respose.Model = model; }