public WrapperDocType GetSingleDocType(int id) { WrapperDocType data = new WrapperDocType(); data.DocType = new DocTypeCRUD().SelectSingle(id); return(data); }
public WrapperDocType CreateSingleDocType(DocTypeENT UserProfile) { WrapperDocType data = new WrapperDocType(); data.DocType = new DocTypeCRUD().CreateSingle(UserProfile); return(data); }
public IActionResult CreatDocType([FromBody] WrapperDocType userParam) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion WrapperDocType data = new Services.DocTypeService().CreateSingleDocType(userParam.DocType); return(Ok(data)); }