Beispiel #1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="oid">主键</param>
        /// <returns></returns>
        public int Delete(Guid oid)
        {
            AgentCompany entity = new AgentCompany();

            entity.AgentID = oid;
            return(entity.Delete());
        }
 public AjaxResult Delete(AgentCompany entity)
 {
     entity.Delete();
     return(new AjaxResult(ResultStatus.OK)
     {
         Status = ResultStatus.OK
     });
 }