public HttpResponseMessage Patch([FromBody] MemberStatusModel memberStatusModel) { MemberBL memberBL = new MemberBL(); ResponseFormat <bool> response = new ResponseFormat <bool>(); response.Data = memberBL.Update(memberStatusModel.memberId, memberStatusModel.status); if (response.Data) { response.Message = "Updated Successfully"; response.Success = true; return(Request.CreateResponse(HttpStatusCode.OK, response)); } else { response.Message = "Cannot Update"; response.Success = false; return(Request.CreateResponse(HttpStatusCode.OK, response)); } }