public long CreatePolicyDetail([FromBody] PolicyDetail detail) { long result = 0; try { result = repository.AddPolicyDetail(detail); } catch (Exception dbEx) { return(result); } return(result); }