public WrapperPartyType GetSinglePartyType(int id) { WrapperPartyType data = new WrapperPartyType(); data.PartyType = new PartyTypeCRUD().SelectSingle(id); return(data); }
public WrapperPartyType CreateSinglePartyType(PartyTypeENT UserProfile) { WrapperPartyType data = new WrapperPartyType(); data.PartyType = new PartyTypeCRUD().CreateSingle(UserProfile); return(data); }
public IActionResult CreatPartyType([FromBody] WrapperPartyType userParam) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion WrapperPartyType data = new Services.PartyTypeService().CreateSinglePartyType(userParam.PartyType); return(Ok(data)); }