private static string MakeMessage(EntityAlreadyExistException e) { return(string.Format(Resource.MessageEntityAlreadyExist, e.EntityType.Name, e.GenerateConstraintString())); }
private static CommonResponse MakeCommonResponse(EntityAlreadyExistException e) { return(new CommonResponse(e.EntityType.ConflictErrorCode, MakeMessage(e))); }